#include "GameObject.h"

GameObject::~GameObject() {
    std::list<GameInst*>::iterator iter = mInstances.begin();
    while(iter != mInstances.end() ) {
        delete *iter;
        mInstances.pop_front();
        iter = mInstances.begin();
    }
}
